package com.yang.crawler.dto.data;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class ColumnDTO implements Serializable {
    private String website;

    private String title;

    private String columnUrl;

    private List<ArticleDTO> articleDTOList = new ArrayList<>();

    private ArticleColumnDTO articleColumnDTO;


    public void addArticleDTO(ArticleDTO articleDTO) {
        this.articleDTOList.add(articleDTO);
    }
}
